﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Modalidad.aspx.cs" Inherits="Admin_Materias_Modalidad" Title="Untitled Page" %>

<%@ Register Src="../../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">

   <fieldset><fieldset><Table><tr class="none"><td class="input-caption">idMateriaModalidad</td><td><asp:TextBox ID="txtidMateriaModalidad" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr ><td class="input-caption">Materia</td><td>
    <uc1:CboGeneric ID="CboMaterias" runat="server" NameDescript="MateriaDesc" NameId="IdMateria"
        tabla="Materia" TipoOrigen="Tabla" Width="400px" />
</td></tr>
<tr><td class="input-caption">Modalidad</td><td><asp:TextBox ID="txtModalidad" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">CantidadNotas</td><td><asp:TextBox ID="txtCantidadNotas" runat="server" cssClass="input-text"></asp:TextBox></td></tr>

<tr><td colspan='2'></td></tr><tr><td colspan='2' class='barButtons' style="height: 18px">
<asp:Button ID='cmdAccion' runat='server' Text='Aceptar'  CssClass='input-button'  OnClick="cmdAccion_Click" />
<asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td></tr>
</Table></fieldset>

     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar."
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        OnRowDeleting="GridView1_RowDeleting" 
        >
        <Columns>
            <asp:BoundField DataField="idMateriaModalidad" 
                HeaderText="Id" 
                ReadOnly="True" 
                SortExpression="idMateriaModalidad" 
                Visible="False" />
            <asp:BoundField DataField="Materia" HeaderText="Materia" visible="false"/>
            <asp:BoundField DataField="Modalidad" HeaderText="Modalidad" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                            ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/delete.gif" Text="Delete" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
   </fieldset>
    &nbsp;<br />
    <br />
    
</asp:Content>

